
#include <vector>
#include <iostream>

#include "GMClient.hh"
#include "GMRobot.hh"

using namespace std;

int
main()
{
    GMClient gm_client;
    vector<float> field_vec( LENGTH_FIELD_VECTOR, 6 );
    vector<float> world_vec( LENGTH_FIELD_VECTOR, 98 );

    gm_client.Init("localhost", 0);

    gm_client.setField( field_vec );
    gm_client.setWorld( world_vec );

    gm_client.SetVel( 0, 3, 3, 4 );
    
    // gm_client.getField( field );
    gm_client.getField( world_vec );
    for( int i = 0 ; i < LENGTH_FIELD_VECTOR ; i++ )
    	cout << world_vec.at(i) << endl;

    gm_client.getWorld( field_vec );
    for( int i = 0 ; i < LENGTH_WORLD_VECTOR ; i++ )
    	cout << field_vec.at(i) << endl;

    gm_client.DribbleEnable(0, true);
    gm_client.Kick( 0, 6 );

    gm_client.SayHello(0);

    GMRobot gm_robot( 1, "BA1", "localhost", 0 );

    gm_robot.SayHello();
    
    return 0;
}
